package user.userer;

import operation.*;

import java.util.Scanner;

public class Ordinary extends User {

    public Ordinary(String name) {
        super(name);
        this.operation = new IOperation[]{new ExiOperation(),new FinOperation(),new DisOperation(),new DelOperation(),new AddOperation(),new Purchase(),new MemberTest()};
    }
    @Override
    public int menu() {
        System.out.println("欢迎" + this.name + "用户进入图书商城！");
        Scanner sc = new Scanner(System.in);
        System.out.println("==============");
        System.out.println("1.查找图书商品");
        System.out.println("2.显示购物车内商品");
        System.out.println("3.删除图书商品");
        System.out.println("4.增加图书商品");
        System.out.println("5.结账(打印小票)");
        System.out.println("6.修改密码");
        System.out.println("0.退出系统");
        System.out.println("==============");
        int choice = sc.nextInt();
        return choice;
    }
}